B_OS:=$(shell uname -s)

ifeq ($(B_OS),Linux)
	EXE=cry.64 cryx
else
	EXE=cry.exe
endif

all: $(EXE)

cry.64: cry.c
	cc -O3 -m64 cry.c -o cry.64 -static
	strip -s cry.64

cry.32: cry.c
	cc -O3 -m32 cry.c -o cry.32 -static
	strip -s cry.32

cry.exe: cry.c
	cc -O3 cry.c -o cry.exe -static
	strip -s cry.exe


cryx: cry.cpp
	g++ -O3 cry.cpp -o cryx -static
	strip -s cryx

clean:
	rm -f cry cry.32 cry.64 cry.exe cryx *.o
